package com.test.restruant.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.test.restruant.dao.DishOrderDAO;
import com.test.restruant.pojo.DishOrder;
import com.test.restruant.service.DishOrderService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 徒有琴
 */
@Service
public class DishOrderServiceImpl implements DishOrderService {
    @Autowired
    private DishOrderDAO dishOrderDAO;

    @Override
    public int insert(DishOrder pojo) {
        return dishOrderDAO.insert(pojo);
    }

    @Override
    public int update(DishOrder pojo) {
        return dishOrderDAO.update(pojo);
    }

    @Override
    public List<DishOrder> getOrderList() {
        return dishOrderDAO.getOrderList();
    }

    @Override
    public DishOrder getOrderByOrderNum(String orderNum) {
        return dishOrderDAO.getOrderByOrderNum(orderNum);
    }
}
